package com.demo.distributedServices;

/**参考: http://blog.csdn.net/fengshizty/article/details/53561562
 *
 * 分布式锁
 */
public interface DistributionLock {

    //加锁成功 返回加锁时间
    public Long lock(String lockKey, String threadname);

    //解锁 需要更加加锁时间判断是否有权限
    public void unlock(String lockKey, long lockvalue, String threadname);

}
